<template>
	<view>
		<jyf-parser :tag-style="tagStyle" :html="myCompany.introduce" ref="article"></jyf-parser>
	</view>
</template>

<script>
	import parser from "@/components/jyf-parser/jyf-parser";
	export default {
		components: {
			parser
		},
		computed: {
			myCompany() {
				return this.$store.state.extend.myCompany
			},
			uid() {
				return this.$store.state.app.uid
			}
		},
		data() {
			return {
				tagStyle: {
					img: 'width:100%;display:block;'
				},
			}
		},
		/**
		 * 用户点击右上角分享
		 */
		// #ifdef MP
		onShareAppMessage: function() {
			wx.showShareMenu({
				withShareTicket: true,
				menus: ['shareAppMessage', 'shareTimeline']
			});
			return {
				title: '遇见贵商',
				imageUrl: "",
				path: `/pages/extend/user/index_about_us?uid=${this.uid || -1}`
			};
		},
		onShareTimeline: function() {
			let that = this;
			return {
				title: '遇见贵商',
				query: {
					uid: this.uid
				},
				imageUrl: ''
			};
		},
		// #endif
		methods: {

		}
	}
</script>

<style lang="scss">
</style>